package com.hsc.yalebao.tabMine;

import android.annotation.SuppressLint;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.ListView;
import android.widget.TextView;
import com.hsc.yalebao.adapter.WanFaPeiLvListViewAdapter;
import com.hsc.yalebao.base.BaseActivity;
import com.hsc.yalebao.base.CustomApplication;
import com.hsc.yalebao.model.BeiJing28PeilvModel;
import com.hsc.yalebao.tabIndex.IndexFragment;
import com.hsc.yalebao.weight.SelfListView;
import java.util.ArrayList;

public class WanFaActivity extends BaseActivity
{
  private WanFaPeiLvListViewAdapter adapter;
  private Context context;
  private String des = "";
  private GridView gv_home;
  private String instructionType;
  private ImageView iv_title_right;
  private ArrayList<BeiJing28PeilvModel> list = new ArrayList();
  private ListView lv_number;
  private TextView mDesTextView;
  View.OnClickListener onClickListener = new View.OnClickListener()
  {
    public void onClick(View paramAnonymousView)
    {
      switch (paramAnonymousView.getId())
      {
      case 2131099704:
      default:
        return;
      case 2131099699:
      }
      CustomApplication.app.finishActivity(WanFaActivity.this);
    }
  };
  private View view_title;

  private void init()
  {
    this.mDesTextView = ((TextView)findViewById(2131099986));
    this.mDesTextView.setText(this.des);
    this.lv_number = ((ListView)findViewById(2131099987));
    this.lv_number.setFocusable(false);
    SelfListView localSelfListView = (SelfListView)findViewById(2131099987);
    String[] arrayOfString1 = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24", "25", "26", "27" };
    String[] arrayOfString2 = { "1000", "333", "166", "100", "66", "48", "36", "28", "22", "18", "16", "15", "14", "13", "13", "14", "15", "16", "18", "22", "28", "36", "48", "66", "100", "166", "333", "1000" };
    String[] arrayOfString3 = { "0.1%", "0.3%", "0.6%", "1.0%", "1.5%", "2.1%", "2.8%", "3.6%", "4.5%", "5.55%", "6.3%", "6.9%", "7.3%", "7.5%", "7.5%", "7.3%", "6.9%", "6.3%", "5.5%", "4.5%", "3.65%", "2.8%", "2.1%", "1.5%", "1.0%", "0.6%", "0.3%", "0.1%" };
    for (int i = 0; ; i++)
    {
      if (i >= arrayOfString1.length)
      {
        if (this.adapter == null)
        {
          this.adapter = new WanFaPeiLvListViewAdapter(this.context, this.list);
          localSelfListView.setAdapter(this.adapter);
        }
        return;
      }
      BeiJing28PeilvModel localBeiJing28PeilvModel = new BeiJing28PeilvModel();
      localBeiJing28PeilvModel.setNumber(arrayOfString1[i]);
      localBeiJing28PeilvModel.setGailv(arrayOfString3[i]);
      localBeiJing28PeilvModel.setPeilv(arrayOfString2[i]);
      this.list.add(localBeiJing28PeilvModel);
    }
  }

  protected void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    Bundle localBundle = getIntent().getExtras();
    if ((localBundle != null) && (localBundle.containsKey("instructionType")))
      this.instructionType = localBundle.getString("instructionType");
    if ("1".equals(this.instructionType))
    {
      setContentView(2130903091);
      this.des = IndexFragment.bjStr;
    }
    while (true)
    {
      CustomApplication.app.addActivity(this);
      this.context = this;
      setTitle(8, 0, 2130837809, "玩法说明", 0, 8, 8, 0, true);
      init();
      return;
      if ("2".equals(this.instructionType))
      {
        setContentView(2130903089);
        this.des = IndexFragment.canStr;
      }
      else
      {
        setContentView(2130903089);
        this.des = IndexFragment.canStr;
      }
    }
  }

  @SuppressLint({"NewApi"})
  public void setTitle(int paramInt1, int paramInt2, int paramInt3, String paramString, int paramInt4, int paramInt5, int paramInt6, int paramInt7, boolean paramBoolean)
  {
    View localView = findViewById(2131099716);
    if (paramBoolean)
      localView.setVisibility(0);
    while (true)
    {
      ((TextView)localView.findViewById(2131099701)).setText(paramString);
      ((TextView)localView.findViewById(2131099700)).setVisibility(paramInt1);
      ImageView localImageView = (ImageView)localView.findViewById(2131099699);
      localImageView.setVisibility(paramInt2);
      localImageView.setOnClickListener(this.onClickListener);
      localImageView.setImageResource(paramInt3);
      TextView localTextView = (TextView)localView.findViewById(2131099702);
      localTextView.setVisibility(paramInt5);
      localTextView.setOnClickListener(this.onClickListener);
      this.iv_title_right = ((ImageView)localView.findViewById(2131099704));
      this.iv_title_right.setVisibility(paramInt6);
      this.iv_title_right.setOnClickListener(this.onClickListener);
      this.iv_title_right.setImageResource(paramInt7);
      return;
      localView.setVisibility(8);
    }
  }
}

/* Location:           C:\Users\user\Desktop\dd28_pcdd720\classes_dex2jar.jar
 * Qualified Name:     com.hsc.yalebao.tabMine.WanFaActivity
 * JD-Core Version:    0.6.2
 */